package com.xxx.common.core.sampleframe.search;

import com.alibaba.fastjson.JSONObject;

import javax.servlet.http.HttpServletResponse;

public class QuerySearch {
	
	private Search search;

	private HttpServletResponse response;

	private String title;

	private String fields;

	private String fileName;

	private String distinct;

	private JSONObject kvObj;


	public Search getSearch() {
		return search;
	}

	public void setSearch(Search search) {
		this.search = search;
	}

	public HttpServletResponse getResponse() {
		return response;
	}

	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFields() {
		return fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getDistinct() {
		return distinct;
	}

	public void setDistinct(String distinct) {
		this.distinct = distinct;
	}
	
	public String getSearchVal(String fieldName){
		return getSearch().getStringSearchVal(fieldName);
	}
	
	public void removeSearch(String fieldName){
		getSearch().removeSearchFilter(fieldName);
	}
	
	public Search addSearchFilter(String key,Object value){
		return getSearch().addSearchFilter(key, value);
	}

	public JSONObject getKvObj() {
		return kvObj;
	}

	public void setKvObj(JSONObject kvObj) {
		this.kvObj = kvObj;
	}

	 
	 
}
